package com.yfp.device.mapper;

import com.yfp.device.domain.vo.MachineAdVo;
import com.yfp.device.domain.MachineAd;
import com.yfp.device.domain.MachineAdExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface MachineAdMapper {
    long countByExample(MachineAdExample example);

    int deleteByExample(MachineAdExample example);

    int deleteByPrimaryKey(Long machineAdId);

    int insert(MachineAd record);

    int insertSelective(MachineAd record);

    List<MachineAd> selectByExample(MachineAdExample example);

    MachineAd selectByPrimaryKey(Long machineAdId);

    int updateByExampleSelective(@Param("record") MachineAd record, @Param("example") MachineAdExample example);

    int updateByExample(@Param("record") MachineAd record, @Param("example") MachineAdExample example);

    int updateByPrimaryKeySelective(MachineAd record);

    int updateByPrimaryKey(MachineAd record);


    MachineAd selectByMachineIdAndAdId(@Param("machineSn") String machineSn, @Param("adId") String adId);

    int updatePlayStatus(@Param("machineSn") String machineSn, @Param("adId") String adId, @Param("playStatus") Integer playStatus);

    List<MachineAdVo> selectMachineAd(@Param("machineSn") String machineSn);
}